export const Male_COMPUTATIONAL_FORMULA = {
    NONAGE: 380 + 14.1,
    JUVENILE: 680 + 15.2,
    YOUTH: 830 + 11.5,
    AGED: 490 + 13.4,
    ILLEGAL: 0
};

export const FEMAL_COMPUTATIONAL_FORMULA = {
    NONAGE: 320 + 13.2,
    JUVENILE: 450 + 14.6,
    YOUTH: 830 + 8.6,
    AGED: 600 + 10.4,
    ILLEGAL: 0
};

export const AGE_MODLE = {
    EIGHTEEN: 18,
    THIRTY: 30,
    THIRTY_ONE: 31,
    SIXTY: 60,

};

export enum Sex {
    male,
    femal
};


export const NVALID_VALUE = 0;




export class CalorieComputingModel {
    sex: Sex;
    minAge: number;
    maxAge: number;
    multiplier: number;
    cardinalNumber: number;
    
    constructor(sex, minAge, maxAge, multiplier, cardinalNumber) {
        this.minAge = minAge;
        this.maxAge = maxAge;
        this.multiplier = multiplier;
        this.sex = sex;
        this.cardinalNumber = cardinalNumber;
    }

    calculate(weight): number {
        return this.cardinalNumber + this.multiplier * weight;
    }
}
